# -*- coding: utf-8 -*-


class MyIter(object):
    
    def __init__(self,num):
        self.num =num
        
    def ff(self):
        for i in range(self.num):
            yield  i**i
            
            
m=MyIter(10)

for j in m.ff():
    print(j)